package com.cm.sys.controller;

import com.cm.sys.bo.UserBo;
import com.cm.sys.bo.UserDataBo;
import com.cm.sys.bo.UserDto;
import com.cm.sys.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.alibaba.fastjson.JSONObject;
import com.cm.sys.framework.aop.NotCheckIPLogin;

import javax.validation.Valid;

@RequestMapping(value = "/test")
@RestController
public class TestController {

    @Autowired
    private  TestService  testService;
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    @NotCheckIPLogin
    public JSONObject getTest(@RequestBody @Valid UserDataBo userDataBo) {

        UserDto userDto = new UserDto();
        userDto.setUserId(null);
        userDto.setUserName(null);
        testService.test(userDto);
        return new JSONObject();


    }

}
